package me.zhengjie.controller;

import lombok.RequiredArgsConstructor;
import me.zhengjie.pojo.dto.SortingResultDto;
import me.zhengjie.pojo.vo.ReturnVo;
import me.zhengjie.service.WmsService;
import me.zhengjie.service.impl.WmsServiceImpl;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/wms")
@RequiredArgsConstructor
public class WmsController {
    private final WmsService wmsService;

    //2楼出库分拣回报
    @PostMapping("/sorting/result")
    public ReturnVo sortingResult(@RequestBody SortingResultDto sortingResult){
        ReturnVo returnVo = wmsService.sortingResult(sortingResult);
        return returnVo;
    }
}
